package docs.oracle.com;

/**
 * Created by msingh on 2014-06-27.
 */

public class Rectangle {

    private int x, y;
    private int width, height;

    public Rectangle() {
        this(0, 0, 1, 1);
    }

    public Rectangle(int width, int height) {
        this(0, 0, width, height);
    }

    public Rectangle(int x, int y, int width, int height) {
        this.x = x;
        this.y = y;
        this.width = width;
        this.height = height;
    }

    public static void main(String args[]){
        Rectangle a = new Rectangle();
        System.out.println("Values are: \n" + a.x + "\n" + a.y + "\n" + a.width + "\n" + a.height);
    }
}
